import * as THREE from "three";

export function renderGeometries(vertices:THREE.Vector2[]) {
    const res:number[] = [];
    vertices = vertices.concat(vertices[0]);
    vertices.forEach(value => {
      res.push(value.x, value.y, 0);
    });
    return new THREE.BufferAttribute(new Float32Array(res), 3);
  }